#include "config.h"
#include <string.h>

static char my_filename [256];

int filter_filename (char const * const filename)
{
	char *ext;
	int i;
	strncpy (my_filename, filename, 256);

	ext = strtok (my_filename, ".");
	ext = strtok (0, "");
	for (i = 0; MUSIC_EXT [i]; i ++)
	{
		if (ext && 0 == strcmp (MUSIC_EXT [i], ext))
		{
			return 1;
		}
	}
	return 0;
}

